﻿using System;
using System.Collections;
using Word = Microsoft.Office.Interop.Word;

namespace Linn {
    public class DocumentManager : IDisposable {
        private Hashtable _documents;

        public DocumentManager(Word.Application app) {
            _documents = new Hashtable();
            this.Application = app;
        }

        public void Change(DocumentBase document) {
            _documents.Add(document.FullName, document);

            ActiveDocument = document;
        }

        public IDocument ActiveDocument { get; private set; }

        public Word.Application Application { get; private set; }

        public void Dispose() {
            //throw new NotImplementedException();
        }
    }
}
